package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.FlowProcessInstanceOperateTraceVo;

import java.util.List;

/**
 * @author lilh
 * @date 2019-07-26 14:41
 */
public interface FlowProcessInstanceOperateTraceRepository {

    /**
     * 新增
     *
     * @param entity 实体
     * @return 操作数量
     */
    int insertProcessInstanceOperateTrace(FlowProcessInstanceOperateTraceVo entity);

    List<FlowProcessInstanceOperateTraceVo> queryFlowProcessInstanceOperateTraceList(String taskId);

    List<FlowProcessInstanceOperateTraceVo> queryFlowProcessInstanceOperateTraceListByProcessInstanceIdAndAction(String processInstacneId, String action);
}
